package com.wanlian.fileserver.device;

import com.wanlian.fileserver.device.worker.DeviceServerFileWorker;

public class DeviceFileApplication {

    public void runFileServer() throws Exception {
        DeviceFileServer deviceServer = new DeviceFileServer(Constants.BIND_FILE_PORT);
        deviceServer.setPublicKey("d5c0bfaca2934f22bc3f8ff4b7b0dc97");
        deviceServer.runFileServer();
        DeviceServerFileWorker.work();
    }
}
